//
//  main.swift
//  CommandPattern
//
//  Created by LY on 2017/11/7.
//  Copyright © 2017年 DesignPatterns. All rights reserved.
//

import Foundation

let calculator = Calculator()
calculator.add(amount: 10)
calculator.multiply(amount: 4)
calculator.subtract(amount: 2)
print("Total : \(calculator.total)")

